/**
 *修改菜单
 */
'use strict';

const conn = require('../../libs/DB/Conn');
const _ = require('underscore');
module.exports = async function (params) {
    let menuId = params.menuId;
    let label = params.label;
    let insertMenuSql = `update sys_menu SET ? WHERE menu_id = ?`,
        insertMenuObj = {
            label: label,
        };
    await conn(insertMenuSql, [insertMenuObj, menuId]);
    return {success: true};
};
